package com.controller;

/**
 * Created by lirance on 16/5/4.
 */
public class Sim {
    int userid1;
    int userid2;
    int Gn;
    double simlar;

    public int getUserid1() {
        return userid1;
    }

    public void setUserid1(int userid1) {
        this.userid1 = userid1;
    }

    public int getUserid2() {
        return userid2;
    }

    public void setUserid2(int userid2) {
        this.userid2 = userid2;
    }

    public int getGn() {
        return Gn;
    }

    public void setGn(int gn) {
        Gn = gn;
    }

    public double getSimlar() {
        return simlar;
    }

    public void setSimlar() throws Exception {
        this.simlar = new Similarity().getSimilarity(userid1, userid2, Gn);
    }

}
